/*
 * GloMoSim is COPYRIGHTED software.  Release 2.02 of GloMoSim is available 
 * at no cost to educational users only.
 *
 * Commercial use of this software requires a separate license.  No cost,
 * evaluation licenses are available for such purposes; please contact
 * info@scalable-networks.com
 *
 * By obtaining copies of this and any other files that comprise GloMoSim2.02,
 * you, the Licensee, agree to abide by the following conditions and
 * understandings with respect to the copyrighted software:
 *
 * 1.Permission to use, copy, and modify this software and its documentation
 *   for education and non-commercial research purposes only is hereby granted
 *   to Licensee, provided that the copyright notice, the original author's
 *   names and unit identification, and this permission notice appear on all
 *   such copies, and that no charge be made for such copies. Any entity
 *   desiring permission to use this software for any commercial or
 *   non-educational research purposes should contact: 
 *
 *   Professor Rajive Bagrodia 
 *   University of California, Los Angeles 
 *   Department of Computer Science 
 *   Box 951596 
 *   3532 Boelter Hall 
 *   Los Angeles, CA 90095-1596 
 *   rajive@cs.ucla.edu
 *
 * 2.NO REPRESENTATIONS ARE MADE ABOUT THE SUITABILITY OF THE SOFTWARE FOR ANY
 *   PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
 *
 * 3.Neither the software developers, the Parallel Computing Lab, UCLA, or any
 *   affiliate of the UC system shall be liable for any damages suffered by
 *   Licensee from the use of this software.
 */

// Use the latest version of Parsec if this line causes a compiler error.
/*
 * $Id: ftp.h,v 1.3 1999/09/05 05:20:51 jmartin Exp $
 *
 * Ported from TCPLIB. Header file of ftp.c.
 */

/*
 * Copyright (c) 1991 University of Southern California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that the above copyright notice and this paragraph are
 * duplicated in all such forms and that any documentation,
 * advertising materials, and other materials related to such
 * distribution and use acknowledge that the software was developed
 * by the University of Southern California. The name of the University 
 * may not be used to endorse or promote products derived from this 
 * software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
*/

static struct entry nitems[] = {
  { 1.000000, 0.164000 },
  { 2.000000, 0.332000 },
  { 3.000000, 0.476000 },
  { 4.000000, 0.574000 },
  { 5.000000, 0.620000 },
  { 6.000000, 0.683000 },
  { 7.000000, 0.717000 },
  { 8.000000, 0.744000 },
  { 9.000000, 0.785000 },
  { 10.000000, 0.810000 },
  { 11.000000, 0.830000 },
  { 12.000000, 0.845000 },
  { 13.000000, 0.855000 },
  { 14.000000, 0.866000 },
  { 15.000000, 0.881000 },
  { 16.000000, 0.894000 },
  { 17.000000, 0.906000 },
  { 18.000000, 0.912000 },
  { 19.000000, 0.919000 },
  { 20.000000, 0.926000 },
  { 21.000000, 0.937000 },
  { 22.000000, 0.947000 },
  { 23.000000, 0.950000 },
  { 24.000000, 0.952000 },
  { 25.000000, 0.955000 },
  { 26.000000, 0.957000 },
  { 27.000000, 0.962000 },
  { 28.000000, 0.967000 },
  { 29.000000, 0.970000 },
  { 32.000000, 0.972000 },
  { 33.000000, 0.975000 },
  { 34.000000, 0.977000 },
  { 35.000000, 0.979000 },
  { 39.000000, 0.982000 },
  { 41.000000, 0.985000 },
  { 44.000000, 0.987000 },
  { 51.000000, 0.988000 },
  { 53.000000, 0.990000 },
  { 54.000000, 0.992000 },
  { 57.000000, 0.993000 },
  { 60.000000, 0.995000 },
  { 71.000000, 0.997000 },
  { 139.000000, 0.998000 },
  { 347.000000, 1.000000 },
};

static struct entry itemsize[] = {
  { 0.000000, 0.001000 },
  { 5.000000, 0.017000 },
  { 10.000000, 0.041000 },
  { 15.000000, 0.060000 },
  { 20.000000, 0.067000 },
  { 25.000000, 0.077000 },
  { 30.000000, 0.090000 },
  { 35.000000, 0.102000 },
  { 40.000000, 0.105000 },
  { 45.000000, 0.111000 },
  { 50.000000, 0.116000 },
  { 55.000000, 0.121000 },
  { 60.000000, 0.135000 },
  { 65.000000, 0.147000 },
  { 70.000000, 0.158000 },
  { 75.000000, 0.166000 },
  { 80.000000, 0.171000 },
  { 85.000000, 0.177000 },
  { 90.000000, 0.179000 },
  { 95.000000, 0.184000 },
  { 100.000000, 0.193000 },
  { 105.000000, 0.196000 },
  { 110.000000, 0.198000 },
  { 115.000000, 0.199000 },
  { 120.000000, 0.204000 },
  { 125.000000, 0.209000 },
  { 130.000000, 0.215000 },
  { 135.000000, 0.217000 },
  { 140.000000, 0.221000 },
  { 145.000000, 0.224000 },
  { 150.000000, 0.226000 },
  { 155.000000, 0.232000 },
  { 160.000000, 0.238000 },
  { 165.000000, 0.241000 },
  { 170.000000, 0.245000 },
  { 175.000000, 0.249000 },
  { 180.000000, 0.252000 },
  { 185.000000, 0.271000 },
  { 190.000000, 0.274000 },
  { 195.000000, 0.276000 },
  { 200.000000, 0.280000 },
  { 205.000000, 0.288000 },
  { 210.000000, 0.290000 },
  { 215.000000, 0.291000 },
  { 225.000000, 0.294000 },
  { 235.000000, 0.297000 },
  { 240.000000, 0.301000 },
  { 245.000000, 0.303000 },
  { 250.000000, 0.305000 },
  { 255.000000, 0.310000 },
  { 260.000000, 0.312000 },
  { 265.000000, 0.316000 },
  { 270.000000, 0.321000 },
  { 275.000000, 0.323000 },
  { 280.000000, 0.325000 },
  { 285.000000, 0.327000 },
  { 290.000000, 0.328000 },
  { 295.000000, 0.331000 },
  { 300.000000, 0.332000 },
  { 305.000000, 0.335000 },
  { 310.000000, 0.336000 },
  { 315.000000, 0.338000 },
  { 320.000000, 0.342000 },
  { 325.000000, 0.346000 },
  { 330.000000, 0.347000 },
  { 335.000000, 0.349000 },
  { 345.000000, 0.351000 },
  { 350.000000, 0.352000 },
  { 355.000000, 0.355000 },
  { 360.000000, 0.356000 },
  { 365.000000, 0.357000 },
  { 370.000000, 0.377000 },
  { 375.000000, 0.379000 },
  { 380.000000, 0.381000 },
  { 385.000000, 0.383000 },
  { 390.000000, 0.387000 },
  { 395.000000, 0.388000 },
  { 400.000000, 0.389000 },
  { 405.000000, 0.390000 },
  { 410.000000, 0.391000 },
  { 415.000000, 0.392000 },
  { 420.000000, 0.393000 },
  { 425.000000, 0.398000 },
  { 430.000000, 0.400000 },
  { 435.000000, 0.403000 },
  { 440.000000, 0.405000 },
  { 445.000000, 0.409000 },
  { 455.000000, 0.416000 },
  { 460.000000, 0.418000 },
  { 465.000000, 0.420000 },
  { 470.000000, 0.422000 },
  { 475.000000, 0.424000 },
  { 480.000000, 0.425000 },
  { 485.000000, 0.426000 },
  { 490.000000, 0.427000 },
  { 495.000000, 0.430000 },
  { 500.000000, 0.432000 },
  { 510.000000, 0.513000 },
  { 520.000000, 0.514000 },
  { 540.000000, 0.517000 },
  { 550.000000, 0.518000 },
  { 560.000000, 0.519000 },
  { 570.000000, 0.520000 },
  { 580.000000, 0.521000 },
  { 590.000000, 0.522000 },
  { 600.000000, 0.524000 },
  { 610.000000, 0.525000 },
  { 630.000000, 0.526000 },
  { 650.000000, 0.527000 },
  { 660.000000, 0.529000 },
  { 670.000000, 0.532000 },
  { 700.000000, 0.533000 },
  { 710.000000, 0.534000 },
  { 730.000000, 0.535000 },
  { 740.000000, 0.536000 },
  { 770.000000, 0.537000 },
  { 780.000000, 0.538000 },
  { 790.000000, 0.539000 },
  { 830.000000, 0.540000 },
  { 840.000000, 0.541000 },
  { 850.000000, 0.542000 },
  { 880.000000, 0.543000 },
  { 890.000000, 0.544000 },
  { 910.000000, 0.545000 },
  { 930.000000, 0.546000 },
  { 940.000000, 0.547000 },
  { 950.000000, 0.548000 },
  { 980.000000, 0.549000 },
  { 1000.000000, 0.550000 },
  { 1010.000000, 0.551000 },
  { 1030.000000, 0.594000 },
  { 1050.000000, 0.595000 },
  { 1070.000000, 0.597000 },
  { 1080.000000, 0.598000 },
  { 1100.000000, 0.599000 },
  { 1120.000000, 0.600000 },
  { 1140.000000, 0.601000 },
  { 1170.000000, 0.602000 },
  { 1200.000000, 0.603000 },
  { 1240.000000, 0.604000 },
  { 1260.000000, 0.605000 },
  { 1300.000000, 0.606000 },
  { 1330.000000, 0.607000 },
  { 1360.000000, 0.608000 },
  { 1380.000000, 0.609000 },
  { 1410.000000, 0.610000 },
  { 1430.000000, 0.611000 },
  { 1460.000000, 0.612000 },
  { 1480.000000, 0.613000 },
  { 1490.000000, 0.614000 },
  { 1510.000000, 0.615000 },
  { 1540.000000, 0.639000 },
  { 1580.000000, 0.640000 },
  { 1590.000000, 0.641000 },
  { 1630.000000, 0.643000 },
  { 1680.000000, 0.644000 },
  { 1730.000000, 0.645000 },
  { 1800.000000, 0.646000 },
  { 1850.000000, 0.647000 },
  { 1880.000000, 0.648000 },
  { 2010.000000, 0.649000 },
  { 2030.000000, 0.650000 },
  { 2060.000000, 0.673000 },
  { 2210.000000, 0.674000 },
  { 2380.000000, 0.675000 },
  { 2520.000000, 0.676000 },
  { 2540.000000, 0.677000 },
  { 2600.000000, 0.705000 },
  { 2810.000000, 0.707000 },
  { 2950.000000, 0.708000 },
  { 3070.000000, 0.717000 },
  { 3200.000000, 0.719000 },
  { 3280.000000, 0.720000 },
  { 3470.000000, 0.721000 },
  { 3710.000000, 0.732000 },
  { 3810.000000, 0.733000 },
  { 3860.000000, 0.734000 },
  { 3910.000000, 0.735000 },
  { 4020.000000, 0.736000 },
  { 4090.000000, 0.743000 },
  { 4510.000000, 0.744000 },
  { 4600.000000, 0.749000 },
  { 4770.000000, 0.750000 },
  { 5000.000000, 0.755000 },
  { 5500.000000, 0.758000 },
  { 6000.000000, 0.763000 },
  { 6500.000000, 0.766000 },
  { 7000.000000, 0.770000 },
  { 7500.000000, 0.775000 },
  { 8000.000000, 0.779000 },
  { 8500.000000, 0.782000 },
  { 9000.000000, 0.786000 },
  { 9500.000000, 0.790000 },
  { 10000.000000, 0.792000 },
  { 10500.000000, 0.793000 },
  { 11000.000000, 0.797000 },
  { 11500.000000, 0.801000 },
  { 12000.000000, 0.805000 },
  { 12500.000000, 0.807000 },
  { 13000.000000, 0.809000 },
  { 13500.000000, 0.812000 },
  { 14000.000000, 0.813000 },
  { 14500.000000, 0.816000 },
  { 15000.000000, 0.818000 },
  { 15500.000000, 0.820000 },
  { 16000.000000, 0.824000 },
  { 16500.000000, 0.825000 },
  { 17000.000000, 0.827000 },
  { 17500.000000, 0.830000 },
  { 18000.000000, 0.832000 },
  { 18500.000000, 0.834000 },
  { 19000.000000, 0.838000 },
  { 19500.000000, 0.842000 },
  { 20000.000000, 0.846000 },
  { 20500.000000, 0.850000 },
  { 21000.000000, 0.851000 },
  { 21500.000000, 0.852000 },
  { 22000.000000, 0.853000 },
  { 22500.000000, 0.854000 },
  { 23000.000000, 0.856000 },
  { 23500.000000, 0.857000 },
  { 24000.000000, 0.859000 },
  { 24500.000000, 0.862000 },
  { 25000.000000, 0.863000 },
  { 25500.000000, 0.865000 },
  { 26000.000000, 0.867000 },
  { 26500.000000, 0.869000 },
  { 27000.000000, 0.870000 },
  { 28000.000000, 0.871000 },
  { 28500.000000, 0.873000 },
  { 29000.000000, 0.874000 },
  { 29500.000000, 0.876000 },
  { 30000.000000, 0.877000 },
  { 30500.000000, 0.878000 },
  { 31500.000000, 0.879000 },
  { 32000.000000, 0.881000 },
  { 32500.000000, 0.883000 },
  { 33000.000000, 0.884000 },
  { 33500.000000, 0.885000 },
  { 34500.000000, 0.887000 },
  { 35000.000000, 0.888000 },
  { 35500.000000, 0.889000 },
  { 36500.000000, 0.890000 },
  { 38000.000000, 0.891000 },
  { 38500.000000, 0.892000 },
  { 39000.000000, 0.893000 },
  { 40000.000000, 0.894000 },
  { 40500.000000, 0.896000 },
  { 41000.000000, 0.897000 },
  { 41500.000000, 0.899000 },
  { 42000.000000, 0.900000 },
  { 43500.000000, 0.901000 },
  { 44500.000000, 0.902000 },
  { 45000.000000, 0.903000 },
  { 45500.000000, 0.904000 },
  { 46500.000000, 0.906000 },
  { 47000.000000, 0.907000 },
  { 47500.000000, 0.908000 },
  { 48000.000000, 0.909000 },
  { 48500.000000, 0.913000 },
  { 50000.000000, 0.914000 },
  { 55000.000000, 0.916000 },
  { 60000.000000, 0.920000 },
  { 65000.000000, 0.925000 },
  { 70000.000000, 0.928000 },
  { 75000.000000, 0.932000 },
  { 80000.000000, 0.934000 },
  { 85000.000000, 0.936000 },
  { 90000.000000, 0.938000 },
  { 95000.000000, 0.939000 },
  { 100000.000000, 0.954000 },
  { 150000.000000, 0.964000 },
  { 200000.000000, 0.970000 },
  { 250000.000000, 0.976000 },
  { 300000.000000, 0.978000 },
  { 350000.000000, 0.980000 },
  { 400000.000000, 0.982000 },
  { 450000.000000, 0.984000 },
  { 500000.000000, 0.989000 },
  { 550000.000000, 0.990000 },
  { 650000.000000, 0.991000 },
  { 700000.000000, 0.992000 },
  { 800000.000000, 0.993000 },
  { 850000.000000, 0.994000 },
  { 950000.000000, 0.995000 },
  { 1050000.000000, 0.996000 },
  { 1200000.000000, 0.997000 },
  { 2200000.000000, 0.998000 },
  { 3700000.000000, 0.999000 },
  { 22050000.000000, 1.000000 },
};

static struct entry ctlsize[] = {
  { 3.000000, 0.003000 },
  { 4.000000, 0.004000 },
  { 5.000000, 0.005000 },
  { 6.000000, 0.057000 },
  { 7.000000, 0.059000 },
  { 8.000000, 0.134000 },
  { 9.000000, 0.150000 },
  { 10.000000, 0.164000 },
  { 11.000000, 0.172000 },
  { 12.000000, 0.182000 },
  { 13.000000, 0.191000 },
  { 14.000000, 0.212000 },
  { 15.000000, 0.223000 },
  { 16.000000, 0.243000 },
  { 17.000000, 0.249000 },
  { 18.000000, 0.258000 },
  { 19.000000, 0.263000 },
  { 20.000000, 0.285000 },
  { 21.000000, 0.288000 },
  { 22.000000, 0.335000 },
  { 23.000000, 0.351000 },
  { 24.000000, 0.481000 },
  { 25.000000, 0.512000 },
  { 26.000000, 0.584000 },
  { 27.000000, 0.610000 },
  { 28.000000, 0.634000 },
  { 29.000000, 0.681000 },
  { 30.000000, 0.805000 },
  { 31.000000, 0.807000 },
  { 32.000000, 0.809000 },
  { 33.000000, 0.811000 },
  { 34.000000, 0.813000 },
  { 35.000000, 0.815000 },
  { 36.000000, 0.817000 },
  { 37.000000, 0.822000 },
  { 39.000000, 0.823000 },
  { 40.000000, 0.825000 },
  { 42.000000, 0.827000 },
  { 44.000000, 0.829000 },
  { 45.000000, 0.839000 },
  { 46.000000, 0.840000 },
  { 47.000000, 0.846000 },
  { 48.000000, 0.856000 },
  { 49.000000, 0.857000 },
  { 52.000000, 0.858000 },
  { 53.000000, 0.874000 },
  { 54.000000, 0.875000 },
  { 55.000000, 0.881000 },
  { 56.000000, 0.882000 },
  { 57.000000, 0.883000 },
  { 58.000000, 0.884000 },
  { 59.000000, 0.890000 },
  { 60.000000, 0.927000 },
  { 61.000000, 0.929000 },
  { 62.000000, 0.930000 },
  { 63.000000, 0.934000 },
  { 64.000000, 0.935000 },
  { 65.000000, 0.940000 },
  { 66.000000, 0.941000 },
  { 67.000000, 0.942000 },
  { 68.000000, 0.943000 },
  { 69.000000, 0.945000 },
  { 70.000000, 0.947000 },
  { 71.000000, 0.952000 },
  { 72.000000, 0.959000 },
  { 73.000000, 0.966000 },
  { 74.000000, 0.971000 },
  { 75.000000, 0.972000 },
  { 76.000000, 0.974000 },
  { 77.000000, 0.977000 },
  { 78.000000, 0.979000 },
  { 79.000000, 0.981000 },
  { 80.000000, 0.983000 },
  { 81.000000, 0.986000 },
  { 82.000000, 0.987000 },
  { 83.000000, 0.989000 },
  { 84.000000, 0.990000 },
  { 85.000000, 0.991000 },
  { 86.000000, 0.992000 },
  { 87.000000, 0.996000 },
  { 89.000000, 0.997000 },
  { 94.000000, 0.998000 },
  { 144.000000, 0.999000 },
  { 443.000000, 1.000000 },
};

static struct histmap ftp_histmap[] = {
  { "nitems", 44 },
  { "itemsize", 290 },
  { "ctlsize", 84 },
};

